import fetch from '@/utils/request'

export function page(query) {
  return fetch({
    url: '/api/adminBiz/aisuanRecommendAdmin/queyrList',
    method: 'get',
    param: query
  })
}
export function delObj(id) {
  return fetch({
    url: '/api/adminBiz/aisuanRecommendAdmin/' + id,
    method: 'delete'
  })
}
export function getRecommendObj(id) {
  return fetch({
    url: '/api/adminBiz/aisuanRecommendAdmin/' + id,
    method: 'get'
  })
}
export function add(query) {
  return fetch({
    url: '/api/adminBiz/aisuanRecommendAdmin/add',
    method: 'post',
    data: query
  })
}
export function queryUserUnderPlatform(query) {
  return fetch({
    url: '/api/adminBiz/aisuanRecommendAdmin/queryUserUnderPlatform',
    method: 'post',
    data: query
  })
}

export function putObj(id, obj) {
  return fetch({
    url: '/api/adminBiz/aisuanRecommendAdmin/' + id,
    method: 'put',
    data: obj
  })
}
